package cn.edu.zzuli.nothinglink.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author suzyyy
 * @since 2021-04-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class MessageRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "mes_id", type = IdType.AUTO)
    private Integer mesId;

    /**
     * 留言内容
     */
    private String mesStuInfo;

    /**
     * 1是未回复，2是已回复
     */
    private Integer mesStatus;

    /**
     * 给哪个老师留言
     */
    private Integer mesTeaId;

    /**
     * 哪个学生的留言
     */
    private Integer mesStuId;

    /**
     * 老师的回复
     */
    private String mesTeaInfo;

    private Integer mesCourseId;

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    @TableField(exist = false)
    private String stuName;

    @TableField(exist = false)
    private String courseName;


}
